Project(QtTutorial3)

SET(QT_USE_PHONON TRUE)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

FILE(GLOB_RECURSE QtTutorial3_moc_srcs ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
FILE(GLOB_RECURSE QtTutorial3_moc_hdrs ${CMAKE_CURRENT_SOURCE_DIR}/*.h)

QT4_WRAP_CPP(QtTutorial3_moc_srcs ${QtTutorial3_moc_hdrs})

ADD_LIBRARY(QtTutorial3 SHARED ${QtTutorial3_moc_srcs} ${QtTutorial3_moc_hdrs})

TARGET_LINK_LIBRARIES(QtTutorial3 ${APP_LIBRARIES_WINDOWS} debug Blobz_d.lib optimized Blobz.lib ${QT_LIBRARIES})

SET_TARGET_PROPERTIES(QtTutorial3 PROPERTIES SUFFIX ".nui")

IF(WIN32)
	INSTALL(TARGETS QtTutorial3 RUNTIME DESTINATION ${NUI_APP_DIR}/QtTutorial3 )
ELSE(WIN32)
	INSTALL(TARGETS QtTutorial3 LIBRARY DESTINATION ${NUI_APP_DIR}/QtTutorial3 )
ENDIF(WIN32)
 
FILE(GLOB SOURCE_GROUP_FILES ${CMAKE_CURRENT_SOURCE_DIR}/Utils/*)
SOURCE_GROUP(Utils FILES ${SOURCE_GROUP_FILES})

SOURCE_GROUP(AutoGen REGULAR_EXPRESSION ${CMAKE_CURRENT_BINARY_DIR}.*\\.cxx$)
 
 